<div class="album log wp-20" ui-view="container">
    <div ng-if="!noPermission">
        <div class="head_title">
            <span class="tit-color">系统日志</span>
        </div>
        <div class="searchWapper">
            <div style="clear: both"></div>
            <div class="form-group searchLump">
                <div class="searchTitle">操作人：</div>
                <div class="search-select">
                    <select ng-model="search.adminId" ng-options="admin.adminId  as admin.fullName for admin in adminList"
                            ng-change="selectChange()"></select>
                </div>
            </div>

            <div class="form-group searchLump">
                <div class="searchTitle">对象类型：</div>
                <div class="search-select">
                    <select ng-model="search.category" ng-change="selectChange_a()"style="float: left"
                            ng-options="category.key as category.value for category in categories">
                    </select>
                </div>
                <div class="input-group input-group-sm pbj-search" style="top:-5px">
                    <input type="text" class="input width-150"  style="margin-left: 0px" name="keyword" ng-model="categoryId" placeholder="对象_ID" ui-event="{ keyup : 'keyup($event,categoryId)' }">
                    <input type="button" class="btn btn-primary" style="margin-left: 10px;margin-top: -3px" value="搜索" ng-click="searchClick(categoryId)">
                </div>
            </div>

            <div class="form-group searchLump" >
                <div class="searchTitle" >操作时间：</div>
                    <input ims-select-range-time="rangeDate" type="text" style="margin-left: 20px">
                </div>

            </div>
        <div style="clear: both"></div>
        <div style="margin:15px  0px">
            <table class="table table-bordered table-hover table-page">

                <thead>
                <tr>
                    <th>序号</th>
                    <th>操作人</th>
                    <th>对象类型</th>
                    <th>对象_ID</th>
                    <th>对象名称</th>
                    <th>操作</th>
                    <th>操作时间</th>
                    <th>备注</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="log in logList">
                    <td ng-bind="$index+1">
                    </td>
                    <td>
                        {{log.userName}}
                    </td>
                    <td>
                        {{table[log.category]}}
                    </td>
                    <td >
                        {{log.categoryId?log.categoryId:""}}
                    </td>
                    <td>
                        {{log.entityName}}
                    </td>
                    <td>
                        {{log.content}}
                    </td>
                    <td>
                        {{log.time}}
                    </td>
                    <td title={{log.title}}>
                        {{log.notes}}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>
    </div>
    <div ng-if="noPermission" ng-include="'templates/no-permission.html'"></div>
    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>

